package cn.iocoder.yudao.module.system.controller.admin.auth.vo;

import cn.hutool.core.util.StrUtil;
import cn.iocoder.yudao.framework.common.validation.InEnum;
import cn.iocoder.yudao.module.system.enums.social.SocialTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.AssertTrue;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Schema(description = "管理后台 - 企微登录 Request VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AuthLoginCpReqVO {

    @Schema(description = "code", requiredMode = Schema.RequiredMode.REQUIRED, example = "zysx")
    @NotEmpty(message = "code不能为空")
//    @Length(min = 4, max = 16, message = "账号长度为 4-16 位")
//    @Pattern(regexp = "^[A-Za-z0-9]+$", message = "账号格式为数字以及字母")
    private String code;
/**/
    @Schema(description = "cropId", requiredMode = Schema.RequiredMode.REQUIRED, example = "wwf17fa7861c8b5977")
    @NotEmpty(message = "cropId不能为空")
//    @Length(min = 4, max = 16, message = "密码长度为 4-16 位")
    private String cropId;

    @Schema(description = "agentId", requiredMode = Schema.RequiredMode.REQUIRED,
            example = "Qe8tYOxynDIa9FBEVAedlYMEsbARfedMlKGdXwy0hK8")
    private Integer agentId;
}
